lib=libmyadd.a

$(lib):myadd.o
	ar -rc $@ $^
myadd.o:myadd.c
	gcc -c $^

.PHONY:clean
clean:
	rm -rf lin *.a *.o

.PHONY:output

output:
	mkdir -p lib/include
	mkdir -p lib/addlib
	cp *.h lib/include
	cp *.a lib/addlib
